package ywpt.service.service;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.CallRecord;

public interface CallRecordService {

	public abstract CallRecord getCallRecordById(Long id);

	public abstract int getCallRecordCountByCriteria(DetachedCriteria query);

	public abstract List<CallRecord> getCallRecords(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createRecordCode();

	public abstract void saveCallRecord(CallRecord callRecord, Long peopleId,Long usualId, Long clientId,Long checkId,Long keshiId,Long departId);

	public abstract void updateCallRecord(CallRecord callRecord, Long peopleId,Long usualId, Long clientId,Long checkId,Long keshiId,Long departId);

	public abstract void removeCallRecord(Long id);
	
	public abstract List<CallRecord> getCallRecords(DetachedCriteria query);

	public abstract Boolean checkCode(String recordCode);

}
